<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Pax-20161104
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;12.&nbsp;System Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="p7zip.html" title="p7zip-16.02">Prev</a>
          <p>
            p7zip-16.02
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pciutils.html" title=
          "pciutils-3.6.4">Next</a>
          <p>
            pciutils-3.6.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="pax" name="pax"></a>Pax-20161104
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Pax
        </h2>
        <p>
          <span class="application">pax</span> is an archiving utility
          created by POSIX and defined by the POSIX.1-2001 standard. Rather
          than sort out the incompatible options that have crept up between
          <span class="application">tar</span> and <span class=
          "application">cpio</span>, along with their implementations across
          various versions of UNIX, the IEEE designed a new archive utility.
          The name <span class="quote">&ldquo;<span class=
          "quote">pax</span>&rdquo;</span> is an acronym for portable archive
          exchange. Furthermore, <span class="quote">&ldquo;<span class=
          "quote">pax</span>&rdquo;</span> means <span class=
          "quote">&ldquo;<span class="quote">peace</span>&rdquo;</span> in
          Latin, so its name implies that it shall create peace between the
          <span class="application">tar</span> and <span class=
          "application">cpio</span> format supporters. The command invocation
          and command structure is somewhat a unification of both
          <span class="application">tar</span> and <span class=
          "application">cpio</span>.
        </p>
        <p>
          <span class="application">pax</span> has been required to be
          present in LSB conformant systems since LSB version 3.0.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://pub.allbsd.org/MirOS/dist/mir/cpio/paxmirabilis-20161104.cpio.gz">
                http://pub.allbsd.org/MirOS/dist/mir/cpio/paxmirabilis-20161104.cpio.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 51172547aa7447244ba1db5768cdcdfd
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 152 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 920 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Pax Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="cpio.html" title="cpio-2.13">cpio-2.13</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/pax">http://wiki.linuxfromscratch.org/blfs/wiki/pax</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Pax
        </h2>
        <p>
          This package has somewhat unusual installation instructions,
          because <span class="application">pax</span> is part of a larger
          set of utilities included in the same tarball. Issue the following
          commands to unpack and build the application:
        </p>
        <pre class="userinput">
<kbd class=
"command">gzip -dck paxmirabilis-20161104.cpio.gz | cpio -mid &amp;&amp;
cd pax &amp;&amp;

sed -i '/stat.h/a #include &lt;sys/sysmacros.h&gt;' cpio.c gen_subs.c tar.c &amp;&amp;

cc -O2 -DLONG_OFF_T -o pax -DPAX_SAFE_PATH=\"/bin\" *.c</kbd>
</pre>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">install -v pax /bin &amp;&amp;
install -v pax.1 /usr/share/man/man1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed ...</strong></span>: This
          eliminates some irritating warnings.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">pax</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="pax-prog" name="pax-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>pax</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    copies files to and from archives in several formats.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 14:03:00 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="p7zip.html" title="p7zip-16.02">Prev</a>
          <p>
            p7zip-16.02
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pciutils.html" title=
          "pciutils-3.6.4">Next</a>
          <p>
            pciutils-3.6.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
